<?php
    session_start();
    if(isset($_SESSION['admin'])){
        require_once("viewmenu.php");
?>
<!DOCTYPE html>
<html lang="pt-br">
    <head>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="css/estilo.css"/>
	<link rel="stylesheet" type="text/css" href="css/corpo.css"/>   
        <link rel="stylesheet" type="text/css" href="css/jquery-ui.css"/>
        <script type="text/javascript" src="js/jquery-2.1.1.js"></script>
        <script type="text/javascript" src="js/jquery-ui.js"></script>
        <script type='text/javascript' src='js/jquery.form.js'></script>
        <script type="text/javascript" src="js/user.excluir.js"></script>    
        <title>Exclusão de casdastro</title>
    </head>
    <body>
        <div id='centro'>
            <p>Excluir Usuário</p>
            <fieldset>
            <div class="mensagem-erro"></div>                
            <form name="userexcluir" id="userexcluir" method="post" action="../control/ControleUserExcluir.php">
                <table>
                    <tr>
                        <td class="td1">Login:</td>
                        <td class="td2"><input type='text' name='login' id="login" class="input-text" autofocus required/></td>
                    </tr>                        
                    <tr>
                        <td colspan="2"><input type='submit' name='controle' value='Remover'/></td>
                    </tr>
                </table>                
           </form>
           </fieldset>     
        </div>
    </body>
</html>
<?php
    }else{
        header("Location: index.php");
    }
?>